<template>
  <div>
    <h1>来自父组件的数据{{ $parent.msg }}</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "宝塔镇河妖",
    };
  },
  methods: {
    handler() {
      console.log("这是子组件的handler方法");
    },
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
